package com.senven.permission.controller.api;

import com.senven.permission.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsProject: senven-orderfood-parent
 * @BelongsPackage: com.senven.permission.controller.api
 * @unthor : YSH
 * @date : 2022/8/29 21:35
 */
@RestController
@RequestMapping("api/permission/permission")
public class ApiPermissionController {
    @Autowired
    private PermissionService permissionService;

    @GetMapping("selectPermissionByUserid")
    public List<String> selectPermissionByUserid(@RequestParam String userid){
        return permissionService.selectPermissionByUserid(userid);
    }
}
